<!DOCTYPE html>
<html>
<head>
    <script src="/js/plugins/echarts/echarts.common.min.js"></script>
</head>
<body>

<div id="main" style="width: 1500px;height:1000px;">

</div>
<script>
/*import * as echarts from 'echarts';*/

var chartDom = document.getElementById('main');
var myChart = echarts.init(chartDom);
var option;

option = {
    xAxis: {
        type: 'category',
        data:     [<#list i as i2>
            '${i2.voteItem.voteMessage}',
            </#list>]
    },
    yAxis: {
        type: 'value'
    },
    series: [{
        data: [<#list i as i2>
            ${i2.count/all},
            </#list>],
        type: 'bar'
    }]
};

option && myChart.setOption(option);
</script>
</body>
</html>


<#--<script>
    var app = {};

    var chartDom = document.getElementById('main');
    var myChart = echarts.init(chartDom);
    var option;
    option = {
        xAxis: {
            type: 'category',
            data:    [<#list i as i2>
                '${i2.voteItem.voteMessage}',
            </#list>]
        },
        yAxis: {
            type: 'value'
        },
        series: [{
            data:[<#list i as i2>
                ${i2.count/all},
            </#list>],
            type: 'bar'
        }]
    };
</script>-->
